from utils.import_all import *


def start_session():
    caps = {
        "platformName": "Android",
        "appium:platformVersion": "9.0.0",
        "appium:deviceName": "emulator-5554",
        "appium:appPackage": "com.zhao.myreader",
        "appActivity": "com.zhao.myreader.ui.home.MainActivity"
    }
    url = "http://127.0.0.1:4723/wd/hub"

    driver = Remote(url, caps)
    wait = WebDriverWait(driver, 3)

    return driver, wait


if '__name__' == '__main__':
    start_session()
